package qj.app.console;

import java.awt.Dimension;

import javax.swing.JDialog;

import qj.util.SwingUtil;
import qj.util.appCommon.swing.AppFrame;
import qj.util.funct.P0;

public class Commands {

	public static P0 preferenceDialog(final AppFrame frame, Config config) {
		return new P0() {public void e() {
			JDialog dialog = SwingUtil.dialog("Preference", frame);
			dialog.setPreferredSize(new Dimension(500,500));
			SwingUtil.show(dialog);
		}};
	}

	public static P0 addTabDialog(final AppFrame frame, Config config) {
		return new P0() {public void e() {
			JDialog dialog = SwingUtil.dialog("Add tab", frame);
			dialog.setPreferredSize(new Dimension(300,300));
			SwingUtil.show(dialog);
		}};
	}
}
